package fall2014.cs343.lab2.bank;

/* InternetBankingSystem.java: A simple program showing a typical invocation of 
banking operations via multiple threads. */

public class InternetBankingSystem {
	public static void main(String [] args ) {
		
		Account accountObject = new Account(100); 
		new Thread(new DepositThread(accountObject,30)).start();
		new Thread(new DepositThread(accountObject,20)).start();
		new Thread(new DepositThread(accountObject,10)).start();
		new Thread(new WithdrawThread(accountObject,30)).start();
		new Thread(new WithdrawThread(accountObject,50)).start();
		new Thread(new WithdrawThread(accountObject,20)).start();
	
	} // end main()
}

